<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <body>

        <ui:composition>

            <div id="post">


                <h3>Pesquisar Questões</h3>

                <div id="stylized" class="myform">

                    <h:outputLabel>Pesquisa: <span class="small">Caso de Pesquisa</span></h:outputLabel>
                    <h:inputText value="#{QuestaoController.stringPesquisa}" id="strPesquisa" ></h:inputText>

                    <h:commandButton styleClass="button"  action="#{QuestaoController.pesquisar}" value="Pesquisar" />

                </div>
                <br />
                <br />

                <div class="questao">

                    <p:dataList value="#{QuestaoController.questaosPesquisa}"  var="questaoTemp" paginator="true" type="ordered" rows="5" effectSpeed="fast" id="listaQuestoes"  
                                paginatorTemplate="{PreviousPageLink} {CurrentPageReport} {NextPageLink} {RowsPerPageDropdown}"  
                                rowsPerPageTemplate="5,10,15" >  
                        <p:column>


                            <ui:include src="../questao/questaoView.xhtml" />

                            
                            
                            
                            <div id="painel">
                            <h:commandLink title="Para Workspace" action="#{QuestaoController.addQuestao}" >
                                    <p:graphicImage value="/resources/icones/095.png"/>
                                </h:commandLink>

                                <h:commandLink title="Visualizar" action="#{QuestaoController.load}" >
                                    <p:graphicImage value="/resources/icones/icon_view.gif"/>
                                </h:commandLink>


                            </div>
                        </p:column>

                    </p:dataList>

                </div>


                <!--
                                                <c:forEach items="{QuestaoProfessorController.questoesProfessorLogado}" var="questaoTemp" varStatus="status" >
                                <ui:repeat value="{QuestaoProfessorController.questoesProfessorLogado}"  var="questaoTemp" step="1" varStatus="status" >
                
                                    <div id="stylized" class="questao" style="border-top: solid 1px; display: block">
                
                                        <ui:include src="../questao/questaoView.xhtml" />
                
                                    </div>
                
                                    <h:commandLink value="Para Lista" action="{QuestaoListaController.setPageQuestaoListaCad}" />
                                    <h:outputText value=" - " />
                                    <h:commandLink value="ver" action="{QuestaoController.load}" />
                
                
                                                    </c:forEach>
                                </ui:repeat>-->




            </div>
        </ui:composition>

    </body>
</html>
